#import "FlourishGratitudeCell.h"


@implementation FlourishGratitudeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self flowFlutterConfigUI];
	}
	return self;
}

- (void)setFlutterGlimmerResilient:(FlourishGratitudeModel *)flutterGlimmerResilient {
	_flutterGlimmerResilient = flutterGlimmerResilient;

	//: 配置cell的UI

	if (flutterGlimmerResilient.pioneer.count > 0) {
		[self.plumeVortexImageView sd_setImageWithURL:[NSURL URLWithString:flutterGlimmerResilient.pioneer[0]] placeholderImage:nil];
	}



	if (flutterGlimmerResilient.pioneer.count > 0) {
		[self.rippleImprintZealImageView sd_setImageWithURL:[NSURL URLWithString:flutterGlimmerResilient.pioneer[0]] placeholderImage:nil];
	}

}
- (UIImageView *)plumeVortexImageView {
	if (!_plumeVortexImageView) {
	
        _plumeVortexImageView = [[UIImageView alloc] init];
        _plumeVortexImageView.contentMode = UIViewContentModeScaleAspectFill;
        _plumeVortexImageView.clipsToBounds = YES;
        _plumeVortexImageView.layer.cornerRadius = 1;
        _plumeVortexImageView.layer.masksToBounds = YES;
        UIImage *suspicion = [UIImage imageNamed:@"images/image_0.png"];
        if (suspicion) {
	        _plumeVortexImageView.image = suspicion;
        }
	}
	return _plumeVortexImageView;
}

//: self.wandererRippleButton 的点击事件
- (void)action_5 {}

- (UITextField *)kaleidoscopeXylophoneTextField {
	if (!_kaleidoscopeXylophoneTextField) {
	
        _kaleidoscopeXylophoneTextField = [UITextField new];
	}
	return _kaleidoscopeXylophoneTextField;
}

- (void)flowFlutterConfigUI {
	//: 描述_0
	[self.contentView addSubview:self.plumeVortexImageView];
	[self.plumeVortexImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(179);
		make.height.mas_equalTo(47);
		make.top.equalTo(@(23));
		make.bottom.equalTo(@(11));
	}];


    //: 描述_1
    self.courageousView = [[UIView alloc] initWithFrame:CGRectZero];
    self.courageousView.frame = CGRectMake(48, 21, 184, 99);
    [self.contentView addSubview:self.courageousView];


    //: 描述_2
    self.xenonLaughterTextField = [UITextField new];
    self.xenonLaughterTextField.size = CGSizeMake(107, 118);
    self.xenonLaughterTextField.left = 11;
    self.xenonLaughterTextField.top = 44;
    [self.contentView addSubview:self.xenonLaughterTextField];


    //: 描述_3
    UIImageView *balloon = [UIImageView new];
    balloon.contentMode = UIViewContentModeScaleAspectFill;
    balloon.clipsToBounds = YES;
    balloon.layer.cornerRadius = 14;
    balloon.layer.masksToBounds = YES;
    UIImage *harmonyCuriousHarbinger = [UIImage imageNamed:@"images/image_3.png"];
    if (harmonyCuriousHarbinger) {
	    balloon.image = harmonyCuriousHarbinger;
    }
    self.imaginationImageView = balloon;
    [self.contentView addSubview:balloon];
	[self.imaginationImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(105);
		make.height.mas_equalTo(191);
		make.bottom.equalTo(@(17));
	}];


    //: 描述_4
    UIView *yonder = [[UIView alloc] initWithFrame:CGRectZero];
    self.thistleView = yonder;
    [self.contentView addSubview:yonder];
	[self.thistleView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(35);
		make.height.mas_equalTo(82);
	}];


    //: 描述_5
    self.wandererRippleButton = [[UIButton alloc] init];
    UIImage *zeal = [UIImage imageNamed:@"images/icon_5.png"];
    if (zeal) {
	    [self.wandererRippleButton setImage:zeal forState:UIControlStateNormal];
    }
    [self.wandererRippleButton setTitle:@"button_5" forState:UIControlStateNormal];
    [self.wandererRippleButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.wandererRippleButton setTitleColor:[UIColor colorWithRed:49/255.0 green:0/255.0 blue:132/255.0 alpha:0.7] forState:UIControlStateNormal];
    [self.wandererRippleButton setTitleColor:[UIColor colorWithRed:117/255.0 green:242/255.0 blue:167/255.0 alpha:0.7] forState:UIControlStateSelected];
    [self.wandererRippleButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.wandererRippleButton];
	[self.wandererRippleButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(82);
		make.height.mas_equalTo(113);
	}];


    //: 描述_6
    self.rippleImprintZealImageView = [UIImageView new];
    self.rippleImprintZealImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.rippleImprintZealImageView.clipsToBounds = YES;
    self.rippleImprintZealImageView.layer.cornerRadius = 17;
    self.rippleImprintZealImageView.layer.masksToBounds = YES;
    UIImage *ignite = [UIImage imageNamed:@"images/image_6.png"];
    if (ignite) {
	    self.rippleImprintZealImageView.image = ignite;
    }
    [self.contentView addSubview:self.rippleImprintZealImageView];
	[self.rippleImprintZealImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(172);
		make.height.mas_equalTo(157);
	}];

	//: 描述_7
	[self.contentView addSubview:self.kaleidoscopeXylophoneTextField];
	[self.kaleidoscopeXylophoneTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(38);
		make.height.mas_equalTo(89);
		make.top.equalTo(@(23));
		make.bottom.equalTo(@(28));
	}];
}


@end